package com.yr.manager.client;

import com.yr.util.R;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

public interface userclient {
    @GetMapping("/user/selectById1")
    R selectById1();

    @GetMapping("/user/selectById2")
    R selectById2(@RequestParam("id") Integer id);

    @Component
    class UserFallBack implements userclient{
        @Override
        public R selectById1() {
            return R.error("");
        }

        @Override
        public R selectById2(Integer id) {
            return R.error("");
        }
    }
}
